import Database from "better-sqlite3";

const db = new Database("testdatabase.db");

db.exec(`
    CREATE TABLE IF NOT EXISTS data (
        id INTEGER PRIMARY KEY AUTOINCREMENT,
        temperature REAL,
        humidity REAL,
        created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
    );
    `);

export default db;